package com.tedu.day04mybatis.pojo;

import java.util.Date;

public class User {
    //java中成员变量int默认值为0，该处建议使用Integer
    //mysql中int默认值为null
    private Integer id;
    private String username;
    private String password;
    private String nickname;
    private Integer age;
    private Date created;//Date的每一个实例是当前系统时间

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public Date getCreated() {
        return created;
    }

    public void setCreated(Date created) {
        this.created = created;
    }
}
